package com.zxx.pattern.commandPattern.command2;

/**
 * @author zxx on 2021/3/4
 */
public class ClientTest {

    public static void main(String[] args) {
//        Command opCommand, clCommand, chCommand;
//
//        opCommand = new CommandOpenTv();
//        clCommand = new CommandCloseTv();
//        chCommand = new CommandChangeChannel();
//
        //使用 Controller 类来接受并执行命令。
//        Controller controller = new Controller(opCommand, clCommand, chCommand);
//        controller.open();
//        controller.close();
//        controller.change();

        //可以直接调用具体命令类
        Command command = new CommandChangeChannel();
        command.execute();
    }

}
